'''
Description: 
Author: Zilu
Date: 2021-11-06 19:57:52
Version: 
LastEditTime: 2021-11-06 20:01:29
LastEditors: Zilu
'''

# partial function可以把函数的某些参数固定住，返回新的函数
from functools import partial
int2 = partial(int, base = 2)
int2('100000')
int2('1111111111111111')

# 使用partial function 的同时，还是可以改变默认的参数
int2('100000',base=10)

